<ion-view view-title="理财">
    <ion-nav-buttons side="left">
        <a ng-click="thsExitModle()" class="btnThsBack" ng-if="app_context_name == 'gcs_ths'"></a>
        <back-button style="visibility: hidden;"></back-button>
        <a ng-click="go('tab.account-index')" class="btnUser"></a>
        <a href="#/tab/search" class="btnSearch"></a>
    </ion-nav-buttons>
    <ion-content ng-class="{'has-loading': isOffline}">
        <ion-refresher pulling-text={{PULLING_TEXT}} pulling-icon="" refreshing-text={{REFRESHING_TEXT}}
                       on-refresh="doRefresh()"></ion-refresher>
        <ion-slide-box active-slide="0" auto-play="true"
                       slide-interval="5000"  delegate-handle="slideboximgs"
                       on-slide-changed="slideHandle(index)" class="text-center">
            <ion-slide id="pre_default" class="padding">
                <img src="../img/tf_home_default_img.png" />
            </ion-slide>
            <ion-slide ng-repeat="ad in param.ads" ng-if="param.ads" repeat-finish="repeatFinish()">
                <a ng-click="go(ad.picLink)" access-record key="gcs_fin_index_1" toUrl="{{ad.picLink}}">
                    <img bo-src="ad.picUrl" bo-alt="ad.description" width="{{param.dev_width}}"/>
                </a>
            </ion-slide>
            <ion-slide ng-repeat="ad in param.ads_login" ng-if="param.ads_login" repeat-finish="repeatFinish()">
                <a ng-click="go(ad.picLink)" access-record key="gcs_fin_index_1" toUrl="{{ad.picLink}}">
                    <img bo-src="ad.picUrl" bo-alt="ad.description" width="{{param.dev_width}}" />
                </a>
            </ion-slide>
        </ion-slide-box>
        <ul class="panel fun-nav clearfix">
            <li><a ng-click="goTo('tab.account-assets-index')" access-record key="gcs_fin_index_assets"
                   toUrl="#/tab/account-assets-index"><img
                    src="">我的资产</a>
            </li>
            <li><a href="#/tab/index-concern" access-record key="gcs_fin_index_collect" toUrl="#/tab/index-concern"><img
                    src="">我的关注</a>
            </li>
            <li><a href="#/us-feedback"><img
                    src="">意见反馈</a>
            </li>
        </ul>
        <div class="panel kFastNav clearfix" style="border: none; font-size: 12px">
            <a ng-click="goTo('tab.product-tfTerm',30,2)" access-record key="gcs_fin_menu_zg"
               toUrl="#/tab/product-tfTerm/30?index=2"><img
                    src="">天风资管</a>
            <a ng-click="goTo('tab.product-tfTerm',30,1)" access-record key="gcs_fin_menu_sypz"
               toUrl="#/tab/product-tfTerm/30?index=1"><img
                    src="">收益凭证</a>
            <a href="#/tab/product-fundTerm" access-record key="gcs_fin_menu_jjlc" toUrl="#/tab/product-tfTerm"><img
                    src="">基金理财</a>
            <a href="#/tab/product-longTerm/40?index=1" access-record key="gcs_fin_menu_yhlc"
               toUrl="#/tab/product-longTerm/40?index=1"><img
                    src="">银行理财</a>
        </div>
        <div ng-if="param.products" class="row light-bg yMb10">
            <div class="col-50 text-center light-bg" ng-repeat="prod in param.products" ng-class="{'ybo-right':$first}">
                <a bo-href="'#tab/'+(prod.prod_catalog_mark= 'otcfdsy' ? 'product-item-otc-float/' : 'product-item-otc/')+prod.prod_code"
                   access-record key="gcs_fin_theme_sypz"
                   toUrl="#tab/{{(prod.prod_catalog_mark= 'otcfdsy' ? 'product-item-otc-float/' : 'product-item-otc/')+prod.prod_code}}">
                    <div class="padding">
                        <p class="dark textW">
                    <span bo-text="prod.prod_name"
                          class="fs1"></span>
                    <span class="clr3"
                          bo-text="'('+prod.prod_code+')'"></span>
                        </p>

                        <p class="clr4 Mt10 fs0" bo-if="prod.prod_profit_mode==4">
                            <strong class="yfs4" bo-text="prod.prod_profit_rate_min | defNumber:0"></strong><span
                                class="fs0">%</span>
                            <strong class="yfs2">-</strong>
                            <strong class="yfs4" bo-text="prod.prod_profit_rate_max | defNumber:0"></strong><span
                                class="fs0">%</span>
                        </p>

                        <p class="clr4 Mt10 fs0" bo-if="prod.prod_profit_mode!=4">
                            <strong class="yfs4" bo-text="prod.prod_profit_rate | defNumber:2"></strong><span
                                class="fs0">%</span>
                        </p>

                        <p class="clr3 Mt10 textW fs0" bo-text="prod.prod_attr_ext_info.otc_describe"></p>

                        <p class="padding Mt15 ybor" style="width: 86%"
                           ng-class="{'yred-border': prod.sellStatus==1, 'ystable-border stable-bg': prod.sellStatus!=1}"
                           ng-switch="prod.sellStatus">
                            <strong ng-switch-when="1" class="clr4">立即抢购</strong>
                            <strong ng-switch-when="2" class="clr4">
                                <span bo-text="prod.ipo_begin_date | defDateString:1"></span>开抢</strong>
                            <strong ng-switch-when="3" class="clr5">已售磬</strong>
                            <strong ng-switch-when="4" class="clr5">已售磬</strong>
                            <strong ng-switch-when="5" class="clr5">已售磬</strong>
                        </p>
                    </div>
                </a>
            </div>
        </div>

        <a href="#/tab/product-tfTerm/30?index=2" class="item group item-icon-right yMgPd ystable-border"
           access-record key="gcs_fin_menu_zg" toUrl="#/tab/product-tfTerm/30?index=2"
           style="padding-top: 10px; padding-bottom: 10px;" ng-if="param.funds">
            <strong>天风资管</strong>
            <i class="icon">
                <span class="yfs2 Mt5 yMr10 clr5">更多</span>
            </i>
        </a>
        <a bo-href="'#/tab/'+(fund.prod_profit_mode== '1' ? 'product-item-QDII/' : 'product-item/')+fund.prod_code" style="display: block"
           access-record key="gcs_fin_theme_tfzg" toUrl="#/tab/{{(fund.prod_profit_mode=='1' ? 'product-item-QDII/': 'product-item/')+fund.prod_code}}"
           class="light-bg padding-top padding-right padding-left" ng-repeat="fund in param.funds">
            <div class="row clr3">
                <div class="col-33 ybo-right">
                    <p class="clr4">
                        <strong class="yfs4"
                                bo-text="fund.price_increase_year | defNumber:2"></strong>%
                    </p>

                    <p class="fs0" style="margin-top: -5px">近一年涨幅</p>
                </div>
                <div class="col-67">
                    <div class="yMl30">
                        <strong class="clr6 fs0" bo-text="fund.prod_name"></strong>

                        <p class="fs0" bo-text="fund.prod_code"></p>

                        <p class="fs0">
                            单位净值:<span bo-text="fund.prod_nav | defNumber:4"></span>元
                        </p>

                    </div>
                </div>
            </div>
            <div class="Mt10" bo-if="!$last">
                <hr class="yhr1"/>
            </div>
            <div style="height: 15px" bo-if="$last">
            </div>
        </a>
        <a href="#/tab/product-fundTerm" class="item group item-icon-right yMgPd ystable-border"
           access-record key="gcs_fin_menu_jjlc" toUrl="#/tab/product-tfTerm"
           style="padding-top: 10px; padding-bottom: 10px;">
            <strong>基金精选</strong>
            <i class="icon">
                <span class="yfs2 Mt5 yMr10 clr5">更多</span>
            </i>
        </a>
        <a bo-href="'#/tab/'+(param.currencyFund.prod_profit_mode=='1' ? 'product-item-QDII/': 'product-item/')+ param.currencyFund.prod_code"
           style="display: block" access-record key="gcs_fin_theme_jjjx"
           toUrl="#/tab/{{(param.currencyFund.prod_profit_mode=='1' ? 'product-item-QDII/': 'product-item/')+ param.currencyFund.prod_code}}"
           class="light-bg padding-top padding-right padding-left" ng-if="param.currencyFund">
            <div class="row clr3">
                <div class="col-33 ybo-right">
                    <p class="clr4">
                        <strong class="yfs4"
                                bo-text="param.currencyFund.prod_yield | defNumber:4"></strong>%
                    </p>

                    <p class="fs0" style="margin-top: -5px">七日年化收益</p>
                </div>
                <div class="col-67">
                    <div class="yMl30">
                        <strong class="clr6 fs0" bo-text="param.currencyFund.prod_abbrname"></strong>

                        <p class="fs0" bo-text="param.currencyFund.prod_code"></p>

                        <p class="fs0">
                            万份收益:<span bo-text="param.currencyFund.prod_gain | defNumber:4"></span>元
                        </p>

                    </div>
                </div>
            </div>
            <div class="Mt10">
                <hr class="yhr1"/>
            </div>
        </a>
        <a bo-href="'#/tab/'+ (param.equityFund.prod_profit_mode=='1' ? 'product-item-QDII/': 'product-item/')+ param.equityFund.prod_code"
           style="display: block" ccess-record key="gcs_fin_theme_jjjx"
           toUrl="#/tab/{{(param.equityFund.prod_profit_mode=='1' ? 'product-item-QDII/': 'product-item/')+ param.equityFund.prod_code}}"
           class="light-bg padding-top padding-right padding-left" ng-if="param.equityFund">
            <div class="row clr3">
                <div class="col-33 ybo-right">
                    <p class="clr4">
                        <strong class="yfs4"
                                bo-text="param.equityFund.price_increase_month1 | defNumber:2"></strong>%
                    </p>

                    <p class="fs0" style="margin-top: -5px">近一月涨幅</p>
                </div>
                <div class="col-67">
                    <div class="yMl30">
                        <strong class="clr6 fs0" bo-text="param.equityFund.prod_abbrname"></strong>

                        <p class="fs0" bo-text="param.equityFund.prod_code"></p>

                        <p class="fs0">
                            单位净值:<span bo-text="param.equityFund.prod_nav | defNumber:4"></span>元
                        </p>

                    </div>
                </div>
            </div>
        </a>

        <div class="Mt15 ads_slide" ng-if="param.botads">
            <a ng-click="go(param.botads.picLink)" ccess-record key="gcs_fin_index_3" toUrl="{{param.botads.picLink}}">
                <img ng-src="{{param.botads.picUrl}}" alt="{{param.botads.description}}"/>
            </a>
        </div>
        <div style="height: 15px">
        </div>
    </ion-content>
</ion-view>